package com.cy.personer.biz.impl;

import com.cy.personer.bean.Card;
import com.cy.personer.biz.CardBiz;
import com.cy.personer.ceptor.OperationLog;
import com.cy.personer.mapper.CardMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class CardBizImpl implements CardBiz {
    @Resource
    private CardMapper cardMapper;

    //添加卡
    @Override
    public boolean addCard(Card card) {
        return cardMapper.addCard(card);
    }

    //检测卡片是否存在
    @Override
    public Card checkCard(String cardNumber) {
        return cardMapper.checkCard(cardNumber);
    }
}
